using System;
using System.ComponentModel.DataAnnotations;
namespace ElectronicsMarket.Service.Models
{
    partial class ElectronicsMarketDBClassesDataContext
    {

    }

    public class PRODUCTMetaData
    {
        [Required]
        private long PRODUCT_ID { get; set; }

        [Required]
        private string PRODUCT_NAME { get; set; }

        [Required]
        private string PRODUCT_DESCRIPTION { get; set; }
        private decimal PRODUCT_PRICE { get; set; }
        private DateTime PRODUCT_MANUFACTURE_DATE { get; set; }
        private String PRODUCT_UNIT { get; set; }
        private DateTime PRODUCT_WARRANTY { get; set; }

        [Required]
        public int PRODUCT_CATEGORY_ID { get; set; }

        [Required]
        public int PRODUCT_MANUFACTURE_ID { get; set; }
    }

    public class CATEGORYMetaData
    {
        [Required]
        public int CATEGORY_ID { get; set; }

        [Required]
        public String CATEGORY_NAME { get; set; }
    }

    public class MANUFACTUREMetaData
    {
        public int MANUFACTURE_ID { get; set; }
        public String MANUFACTURE_NAME { get; set; }
    }

    public class CUSTOMERMetaData
    {
        [Required]
        private int CUSTOMER_ID { get; set; }

        [Required]
        private string CUSTOMER_SYS_NAME { get; set; }

        [Required]
        private string CUSTOMER_PASSWORD { get; set; }
        private string CUSTOMER_FISRT_NAME { get; set; }
    }

    [MetadataType(typeof(PRODUCTMetaData))]
    partial class PRODUCT
    {

    }

    [MetadataType(typeof(CATEGORYMetaData))]
    partial class CATEGORY
    {

    }

    [MetadataType(typeof(MANUFACTUREMetaData))]
    partial class MANUFACTURE
    {

    }
    [MetadataType(typeof(CUSTOMERMetaData))]
    partial class CUSTOMER
    {

    }
}
